<?php
    include_once('connect.php');
    $cloths_id = $_GET['cloths_id'];

    if($cloths_id){
        
        $sql = "select * from female_cloths where cloths_id = $cloths_id";
        $data = mysqli_query($conn, $sql);
        $arr = mysqli_fetch_array($data);
        
        $res = [];
        $list = [];
        if($arr){
            $list['cloths_name'] = $arr['cloths_name'];
            $list['cloths_type'] = $arr['cloths_type'];
            $list['cloths_color'] = $arr['cloths_color'];
            $list['cloths_size'] = $arr['cloths_size'];
            $list['cloths_prices'] = $arr['cloths_prices'];
            $list['cloths_img'] = $arr['cloths_img'];

            $res['status'] = true;
            $res['msg'] = '查询成功';
            $res['list'] = $list;
        }else{
            $res['status'] = false;
            $res['msg'] = '查询失败';
            
        }
    }else{
        echo('数据传输错误');
    }

    echo(json_encode($res))
?>